people = {
    'Alice' : {
        'phone' : '2341',
        'addr' : 'Foo drive 23'
    },

    'Beth' : {
        'phone' : '9102',
        'addr' : 'Bar street 42'
    },

    'Cecil' : {
        'phone' : '3158',
        'addr' : 'Barz avemue 90'
    }
}

labels = {
    'phone' : 'phone number',
    'adrr' : 'address'
}
name = input('Name:')
if name == 'p' : key = 'phone'
if name == 'a' : key = 'addr'
if name in people : print( "%s's %s is %s." )% \
   (name.labels[key].people[name][key])

